package com.example.lazyhelper.ui.request;

import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.example.lazyhelper.R;


public class RequestActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_request);
        TextView textView = findViewById(R.id.accept_request_title);

        String[] strings = getIntent().getStringArrayExtra("request");
        if (strings != null) {
                textView.setText(strings[0]);
        } else {
            Toast.makeText(this, "Can't read this item!", Toast.LENGTH_LONG).show();
        }

    }

}
